<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<html>
<head>
	<!-- Date picker styles + css area -->
	<script src="./scripts/mootools-core.js" type="text/javascript"></script>
	<script src="./scripts/mootools-more.js" type="text/javascript"></script>
	<script src="./scripts/Picker_002.js" type="text/javascript"></script>
	<script src="./scripts/Picker.js" type="text/javascript"></script>
	<script src="./scripts/Picker_003.js" type="text/javascript"></script>
	<link href="./css/datepicker_vista.css" rel="stylesheet" type="text/css" media="screen"/>
	<!-- End of Date picker styles + css area -->
	<script>
		window.addEvent('domready', function(){ 
			new Picker.Date('vista1', {
				pickerClass: 'datepicker_vista'
			});
			new Picker.Date('vista2', {
				pickerClass: 'datepicker_vista'
			});
		});
	</script>
<title>Human Resource Entry</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<html:form action="/empEducationUpdate">
	<div>
		<html:hidden property="id"/>
		<html:hidden property="empNumber"/>
		<br/>
		<table>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Level: *</label></td>
				<td>
					<html:select name="empEducationUpdate" property="level" style="width:220px;">
						<html:optionsCollection property="allLevels" label="label" value="value" />
					</html:select>
				</td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Institute: *</label></td>
				<td><html:text property="institute" style="width:220px;"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Major: *</label></td>
				<td>
					<html:select name="empEducationUpdate" property="major" style="width:220px;">
						<html:optionsCollection property="allMajors" label="label" value="value" />
					</html:select>
				</td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Year: *</label></td>
				<td><html:text property="year" style="width:220px;"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Score</label></td>
				<td><html:text property="score" style="width:220px;"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Start Date</label></td>
				<td><html:text property="startDate" style="width:220px;" styleId="vista1"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>End Date</label></td>
				<td><html:text property="endDate" style="width:220px;" styleId="vista2"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"></td>
				<td><a style="color: red;"><bean:write name="empEducationUpdate" property="message"/></a></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"></td>
				<td>
					<logic:equal name="empEducationUpdate" property="isAddNew" value="true">
						<input type="button" value="Add" name="btnAdd" class="sbutton" id="btnAdd" onclick="postParams('act=add&btnAdd');"></input>
					</logic:equal>
					<logic:equal name="empEducationUpdate" property="isAddNew" value="false">
						<input type="button" value="Edit" name="btnEdit" class="sbutton" id="btnEdit" onclick="postParams('act=edit&btnEdit');"></input>
					</logic:equal>
					<input type="reset" value="Reset" class="sbutton"></input>
				</td>
			</tr>
		</table> 
	</div> 
	</html:form>
</body>
</html>